package tw.com.softleader.fire.setting.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import tw.com.softleader.fire.common.entity.GenericEntity;

/**
 * @Author:Rhys
 */

@Entity
@Table(name = "SET_ACU_ADDR")
public class AcuAddrEntity extends GenericEntity {

	@Column(name = "ACU_NO", length = 10, unique = true)
	private String acuNo;

	@Column(name = "ADDR_CODE", length = 10)
	private String addrCode;

	@Column(name = "ROD_CODE", length = 10)
	private String rodCode;

	@Column(name = "ADDR_TXT", length = 200)
	private String addeTxt;

	@Column(name = "ACU_ST", length = 10)
	private String acuSt;

	@ManyToOne
	@JoinColumn(name = "ACU_ID")
	private AcuEntity acuEntity;

	@Override
	public String toString() {
		return "AcuAddrEntity [acuNo=" + acuNo + ", addrCode=" + addrCode
				+ ", rodCode=" + rodCode + ", addeTxt=" + addeTxt + ", acuSt="
				+ acuSt + ", acuEntity=" + acuEntity + ", id=" + id
				+ ", createTime=" + createTime + ", creator=" + creator
				+ ", modifiedTime=" + modifiedTime + ", modifier=" + modifier
				+ "]";
	}

	public AcuEntity getAcuEntity() {
		return acuEntity;
	}

	public void setAcuEntity(AcuEntity acuEntity) {
		this.acuEntity = acuEntity;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getAcuNo() {
		return acuNo;
	}

	public void setAcuNo(String acuNo) {
		this.acuNo = acuNo;
	}

	public String getAddrCode() {
		return addrCode;
	}

	public void setAddrCode(String addrCode) {
		this.addrCode = addrCode;
	}

	public String getRodCode() {
		return rodCode;
	}

	public void setRodCode(String rodCode) {
		this.rodCode = rodCode;
	}

	public String getAddeTxt() {
		return addeTxt;
	}

	public void setAddeTxt(String addeTxt) {
		this.addeTxt = addeTxt;
	}

	public String getAcuSt() {
		return acuSt;
	}

	public void setAcuSt(String acuSt) {
		this.acuSt = acuSt;
	}
}
